import Vue from "vue";
import VueRouter from "vue-router";
import SellerPage from "@/views/SellerPage.vue";
import TrendPage from "@/views/TrendPage.vue";
import MapPage from "@/views/MapPage.vue";
import RankPage from "@/views/RankPage.vue";
import HotPage from "@/views/HotPage.vue";
import StockPage from "@/views/StockPage.vue";
import Home from "@/views/Home.vue";
Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/home",
  },
  {
    path: "/home",
    component: Home,
  },
  {
    path: "/sellerPage",
    component: SellerPage,
  },
  {
    path: "/trendPage",
    component: TrendPage,
  },
  {
    path: "/mapPage",
    component: MapPage,
  },
  {
    path: "/rankPage",
    component: RankPage,
  },
  {
    path: "/hotPage",
    component: HotPage,
  },
  {
    path: "/stockPage",
    component: StockPage,
  },
];

const router = new VueRouter({
  routes,
});

export default router;
